CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(MudBath)

ADD_SUBDIRECTORY (script)

INCLUDE(MudBath.list)

SET(CMAKE_INCLUDE_CURRENT_DIR ON)

SET(CMAKE_REQUIRED_LIBRARIES "MudBath;${CMAKE_REQUIRED_LIBRARIES}")

ADD_LIBRARY(MudBath STATIC ${HEADERS} ${SOURCES})
TARGET_LINK_LIBRARIES(MudBath libs script glue
	${LIBRARIES}
	${OGRE_LIBRARIES} 
	${OIS_LIBRARIES} 
	${LUA_LIBRARY} 
	${V8_LIBRARIES}
	${CEGUI_LIBRARY}
	#${MYGUI_LIBRARIES} 
	${BULLET_LIBRARIES} 
	${SIGC_LIBS} 
	${OPENAL_LIBRARY} 	
	
	${GNASH_LIBS}
	#-lMyGUI.OgrePlatform 
	-lCEGUIOgreRenderer
	-lCEGUIBase
	-lCEGUILuaScriptModule
	${CMAKE_REQUIRED_LIBRARIES}
)

